package com.bzyd.cloud.fallback;

import lombok.extern.slf4j.Slf4j;

/**
 * Throwable异常降级类
 * Created by Xianyue Dang on 2021/8/1
 */
@Slf4j
public class OrderServiceImpl3FallbackClass {

    //注意这里必须使用static修饰方法
    public static String fallback(Throwable ex){
        log.error("{}",ex);
        return "接口发生异常了（类中）...";
    }
}
